package com.nanuminc.market;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

public class Nanum extends Activity {
    /** Called when the activity is first created. */
	final int LODING_BT = 400;
	int LOGIN_BT = 300;

	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash); 
        
        Intent intent_splash = new Intent(Nanum.this, SplashApp.class);
        startActivityForResult(intent_splash, LODING_BT);       
    }
    
    @Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    	if(resultCode == RESULT_OK)  {     
 		  	switch(requestCode) {
 		  		case LODING_BT:
 		  			Intent intent_loging = new Intent(Nanum.this, MarketMain.class); //next activity is MarketMain.java-ngocdtd.
 		  			startActivity(intent_loging); 
 		  			finish();
 		  			break;
 		  			/*
 		  		case LOGIN_BT :
 		  			Intent intent = new Intent(Nanum.this, TimeLines.class);
 		  			intent.putExtra("TOKID", "NO");
 		  			intent.putExtra("CALLACT", "NO");
 		  			startActivity(intent);
 		  			finish();
 		  			break;*/	  				
 		  	}
    	}
	}
	
}
